import request from '@/utils/request'

// 查询物料出库审批规则列表
export function listChukuSpgz(query) {
  return request({
    url: '/business/chukuSpgz/list',
    method: 'get',
    params: query
  })
}

// 查询物料出库审批规则详细
export function getChukuSpgz(id) {
  return request({
    url: '/business/chukuSpgz/' + id,
    method: 'get'
  })
}

// 新增物料出库审批规则
export function addChukuSpgz(data) {
  return request({
    url: '/business/chukuSpgz',
    method: 'post',
    data: data
  })
}

// 修改物料出库审批规则
export function updateChukuSpgz(data) {
  return request({
    url: '/business/chukuSpgz',
    method: 'put',
    data: data
  })
}

// 删除物料出库审批规则
export function delChukuSpgz(id) {
  return request({
    url: '/business/chukuSpgz/' + id,
    method: 'delete'
  })
}
